package com.book.service;

import com.book.pojo.Comment;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cxy
 * @since 2023-10-12 17:15:29
 */
public interface CommentService extends IService<Comment> {

    List<Comment> selectAuthorComment(Long authorId);

    List<Map<String, Object>> selectCommentByBookIdZtree(Long bookId);

    void addComment(Comment comment);

    void deleteComment(Long id);

    void updateLike(Comment comment);
}
